package com.cskaoyan.wordmemorize.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {
    @Bean
    public ChatClient chatClient(ChatClient.Builder builder) {
        return builder.build(); // 使用 Builder 创建 Bean
    }
}